<?php

declare(strict_types=1);

namespace app\common\service\sys;

use app\common\traits\ServiceTrait;
use app\common\dao\sys\DevLogDao;

/**
 * 开发日志 服务业务层(Service)
 * @author kaige
 * @update  2023-09-16
 * @copyright ©2022 泉州市盛筑信息科技有限公司 版权所有
 */
class DevLogService
{
  protected $dao = null;

  public function __construct()
  {
    $this->dao = new DevLogDao();
  }
  use ServiceTrait;

  public function _list_with()
  {
    return ['gluser'];
  }

  public function _list_format($data)
  {
    foreach($data as $k=>&$v){
      if (isset($v['start']) && !empty($v['start'])){
        $v['start'] = time2str($v['start'],2);
      }
      if (isset($v['end']) && !empty($v['end'])){
        $v['end'] = time2str($v['end'],2);
      }
    }
    return $data;
  }
}
